import { createRouter, createWebHistory } from "vue-router";

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/start",
      component: () => import("../pages/01-start.vue"),
    },
    {
      path: "/reactive",
      component: () => import("../pages/02-reactive.vue"),
    },
    {
      path: "/computed",
      component: () => import("../pages/03-computed.vue"),
    },
    {
      path: "/lifecycle",
      component: () => import("../pages/04-lifecycle.vue"),
    },
    {
      path: "/watch",
      component: () => import("../pages/05-watch.vue"),
    },
    {
      path: "/ref",
      component: () => import("../pages/06-ref.vue"),
    },
    {
      path: "/props",
      component: () => import("../pages/07-props.vue"),
    },
    {
      path: "/provide",
      component: () => import("../pages/08-provide.vue"),
    },
    {
      path: "/setup",
      component: () => import("../pages/09-setup属性.vue"),
    },
  ],
});

export default router;
